import json
import os

from config_qjbl import DIR_NAME


def read_json(filename):
    list_data = []
    # 找路径
    file = DIR_NAME + os.sep +"data" + os.sep + filename
    with open(file,mode="r",encoding="utf-8") as f:
        data =json.load(f)
        for i in data:
            tmp = tuple(i.values())[1:]
            list_data.append(tmp)
    return list_data

if __name__ == '__main__':
    print(read_json("ihrm_login.json"))